package com.example.a1725185505.works.activity;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;

import com.example.a1725185505.works.R;

public class ViewActivity extends AppCompatActivity{

        protected void onCreate(Bundle savedlnstanceState){
            super.onCreate(savedlnstanceState);
            setContentView(R.layout.activity_view);

            new Handler().postDelayed(new Runnable() {
                @Override
                public void run() {
                    Intent intent = new Intent(ViewActivity.this,MainActivity.class);
                    startActivity(intent);
                    finish();
                }
            },2000);
        }

}
